Skip to content

feat(builtins): add tree command#581

Merged
chaliy merged 1 commit intomainfrom
claude/process-issues-systematically-AEJJh
Mar 14, 2026
Merged

feat(builtins): add tree command#581
chaliy merged 1 commit intomainfrom
claude/process-issues-systematically-AEJJh

Conversation

@chaliy
Copy link
Copy Markdown
Contributor

@chaliy chaliy commented Mar 14, 2026

Summary

  • Add tree builtin for directory tree visualization
  • Supports -a (hidden files), -d (dirs only), -L N (depth limit), -I pattern (exclude)
  • Unicode box-drawing characters, file/directory count summary
  • 10 unit tests covering all options and edge cases

Test plan

  • Unit tests for basic tree, hidden files, dirs-only, depth limit, exclude pattern
  • Error cases: nonexistent dir, invalid depth, invalid option, empty dir
  • cargo clippy --all-targets --all-features -- -D warnings passes
  • Full test suite passes (1621 tests)

Closes #538

Implements tree with support for:
- Display directory tree from cwd or given path
- -a: show hidden files
- -d: directories only
- -L N: limit depth to N levels
- -I pattern: exclude matching entries
- File/directory count summary at bottom
- Unicode box-drawing characters for tree lines

Includes 10 unit tests covering all options and edge cases.

Closes #538
@chaliy chaliy merged commit 8b739d9 into main Mar 14, 2026
23 checks passed
@chaliy chaliy deleted the claude/process-issues-systematically-AEJJh branch March 14, 2026 05:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(builtins): add tree command

1 participant